<template>
    <div style="padding: 20px 200px">
        <h2> index页</h2>
        <button @click="gotoHomeHandler">返回home</button>
    </div>
</template>

<script>
    export default {
        name: "index",
        methods: {
            gotoHomeHandler() {
                this.$router.push({
                    name: "home"
                })
            }
        }
    }
</script>

<style scoped>

</style>
